/*
 * @Descripttion: GGB
 * @version: 1.0
 * @Author: GGB
 * @Date: 2021-08-18 09:58:08
 * @LastEditors: GGB
 * @LastEditTime: 2021-08-18 10:43:14
 */
import 'package:flutter/material.dart';
import 'package:flutter_data_center/components/animation_text.dart';
import 'package:flutter_data_center/utills/color_utils.dart';
import 'package:line_icons/line_icons.dart';

class WristbandDetailItemCard extends StatelessWidget {
  const WristbandDetailItemCard({Key key, this.bg, this.count, this.title})
      : super(key: key);
  final String bg;
  final String title;
  final int count;

  @override
  Widget build(BuildContext context) => Expanded(
        child: Container(
          padding: EdgeInsets.all(10),
          height: 62,
          decoration: BoxDecoration(
            borderRadius: BorderRadius.circular(15),
            color: Colors.white,
            boxShadow: [
              BoxShadow(
                offset: Offset(0, 0),
                blurRadius: 10,
                color: Color.fromRGBO(0, 0, 0, 0.05),
              ),
            ],
          ),
          child: Row(
            children: [
              Column(
                children: [
                  Container(
                    width: 25,
                    height: 25,
                    // padding: EdgeInsets.all(5),
                    decoration: BoxDecoration(
                      borderRadius: BorderRadius.circular(5),
                      color: gColor(bg),
                    ),
                    child: Icon(LineIcons.heartbeat, size: 18),
                  ),
                  Text(
                    title,
                    style: TextStyle(fontSize: 12),
                  ),
                ],
              ),
              Spacer(),
              AnimText(
                number: count,
                style: TextStyle(
                  fontSize: 34,
                  color: gColor("#CCCCCC"),
                ),
              ),
            ],
          ),
        ),
      );
}
